max v2;
#N vpatcher 163 68 1074 676;
#P origin 48 0;
#P window setfont "Sans Serif" 9.;
#P user ubumenu 230 123 41 9109513 0 1 1 0;
#X add -1;
#X add 10;
#X add 20;
#X add 50;
#X add 100;
#X add 500;
#X add 1000;
#X prefix_set 0 0 <none> 0;
#P window linecount 1;
#P message 476 289 31 9109513 \$2 \$1;
#P message 73 289 31 9109513 \$2 \$1;
#P newex 78 73 45 9109513 loadbang;
#P toggle 176 72 27 0;
#P newex 176 111 40 9109513 sel 1 0;
#P newex 176 47 47 9109513 r tss_dac;
#P newex 582 423 79 9109513 scale -1. 1. 1. 6.;
#P newex 476 424 97 9109513 scale -1. 1. 650. 150.;
#P newex 157 424 79 9109513 scale -1. 1. 0. 1.;
#P newex 73 424 79 9109513 scale -1. 1. 1. 0.;
#P newex 157 470 32 9109513 line~;
#P message 157 450 37 9109513 \$1 10;
#P message 582 449 37 9109513 \$1 10;
#P newex 582 469 32 9109513 line~;
#P newex 582 501 64 9109513 s AccRightX;
#P message 476 450 37 9109513 \$1 10;
#P newex 476 470 32 9109513 line~;
#P newex 73 470 32 9109513 line~;
#P message 73 450 37 9109513 \$1 10;
#P newex 73 501 59 9109513 s AccLeftY;
#P newex 157 501 59 9109513 s AccLeftX;
#P newex 476 501 64 9109513 s AccRightY;
#P flonum 718 284 56 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 791 284 53 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 738 253 63 9109513 unpack 0. 0.;
#P comment 708 284 16 9109513 x;
#P comment 780 284 18 9109513 y;
#P flonum 301 291 56 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 374 291 53 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 321 260 63 9109513 unpack 0. 0.;
#P comment 291 291 16 9109513 x;
#P comment 363 291 18 9109513 y;
#P newex 537 360 81 9109513 scale -1. 1. 0 127;
#P newex 454 360 81 9109513 scale -1. 1. 127 0;
#P newex 133 363 81 9109513 scale -1. 1. 0 127;
#P newex 50 363 81 9109513 scale -1. 1. 127 0;
#P toggle 672 263 15 0;
#P newex 672 282 27 9109513 gate;
#P user multiSlider 672 306 148 96 -1. 1. 2 3961 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P toggle 253 270 15 0;
#P newex 253 289 27 9109513 gate;
#P user multiSlider 253 313 148 96 -1. 1. 2 3961 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P newex 73 262 45 9109513 route ax;
#P newex 155 322 56 9109513 print accel1;
#P newex 73 318 63 9109513 unpack 0. 0.;
#P newex 73 238 111 9109513 PhidgetAccelerometer;
#P newex 476 262 45 9109513 route ax;
#P newex 579 314 56 9109513 print accel2;
#P newex 476 314 63 9109513 unpack 0. 0.;
#P newex 476 238 111 9109513 PhidgetAccelerometer;
#P button 78 100 15 0;
#P number 229 147 35 9 -1 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 229 168 91 9109513 setSampleRate \$1;
#P message 191 167 26 9109513 stop;
#P message 176 148 30 9109513 start;
#P message 87 158 52 9109513 getStatus;
#P message 96 177 50 9109513 getSerial;
#P message 78 139 55 9109513 getVersion;
#N vpatcher 15 55 263 216;
#P outlet 102 67 15 0;
#P inlet 102 36 15 0;
#P connect 0 0 1 0;
#P pop;
#P newobj 165 205 32 9109513 p thru;
#P comment 270 148 36 9109513 in ms;
#P comment 272 124 141 9109513 -1 gives the device sample rate;
#N comlet Ry;
#P outlet 537 391 15 0;
#N comlet Rx;
#P outlet 454 391 15 0;
#N comlet Ly (accelerometer);
#P outlet 133 394 15 0;
#N comlet Lx (accelerometer);
#P outlet 50 394 15 0;
#P comment 209 81 265 9109513 start and stop accelerometer reading when audio is turned on.;
#P connect 21 0 30 0;
#P connect 30 0 1 0;
#P fasten 7 0 20 0 170 232 78 232;
#P connect 20 0 23 0;
#P connect 23 0 64 0;
#P connect 64 0 21 0;
#P connect 21 0 56 0;
#P connect 56 0 47 0;
#P connect 47 0 48 0;
#P connect 48 0 46 0;
#P connect 63 0 15 0;
#P fasten 15 0 8 0 83 121 83 121;
#P fasten 15 0 10 0 83 130 92 130;
#P fasten 15 0 9 0 83 121 101 121;
#P connect 21 1 31 0;
#P connect 31 0 2 0;
#P fasten 23 1 22 0 113 285 160 285;
#P connect 21 1 57 0;
#P connect 57 0 54 0;
#P connect 54 0 55 0;
#P connect 55 0 45 0;
#P fasten 8 0 7 0 83 200 170 200;
#P fasten 10 0 7 0 92 200 170 200;
#P fasten 9 0 7 0 101 200 170 200;
#P fasten 11 0 7 0 181 198 170 198;
#P fasten 12 0 7 0 196 195 170 195;
#P fasten 13 0 7 0 234 191 170 191;
#P connect 60 0 62 0;
#P connect 62 0 61 0;
#P connect 61 0 11 0;
#P connect 61 1 12 0;
#P connect 66 1 14 0;
#P connect 14 0 13 0;
#P connect 26 0 25 0;
#P connect 25 0 24 0;
#P hidden connect 23 0 25 1;
#P fasten 36 0 38 0 326 287 306 287;
#P connect 25 0 36 0;
#P fasten 36 1 37 0 379 287 379 287;
#P connect 17 0 32 0;
#P connect 32 0 3 0;
#P fasten 7 0 16 0 170 230 481 230;
#P connect 16 0 19 0;
#P connect 19 0 65 0;
#P connect 65 0 17 0;
#P connect 17 0 58 0;
#P connect 58 0 50 0;
#P connect 50 0 49 0;
#P connect 49 0 44 0;
#P connect 17 1 33 0;
#P connect 33 0 4 0;
#P fasten 19 1 18 0 516 281 584 281;
#P connect 17 1 59 0;
#P connect 59 0 53 0;
#P connect 53 0 52 0;
#P connect 52 0 51 0;
#P hidden connect 26 0 29 0;
#P connect 29 0 28 0;
#P connect 28 0 27 0;
#P hidden connect 19 0 28 1;
#P fasten 41 0 43 0 743 280 723 280;
#P connect 28 0 41 0;
#P fasten 41 1 42 0 796 280 796 280;
#P pop;
